import httpx
import asyncio

async def request(client):
    await client.post('https://127.0.0.1:8000/course/collect/1')

async def main():
    async with httpx.AsyncClient() as client:
        task_list = []
        for _ in range(100):
            req = request(client)
            task = asyncio.create_task(req)
            task_list.append(task)
        await asyncio.gather(*task_list)

if __name__ == '__main__':
    asyncio.run(main())
